
package com.situ.day8homework6;

public class CarTest {
	public static void main(String[] args) {
		SubCar subCar = new SubCar(50, 120);
		subCar.setMark("奥迪");
		System.out.println(subCar);
		subCar.drive();
		subCar.speedChange(90);
		System.out.println();
		
		SubCar subCar1 = new SubCar(60, 150);
		subCar1.setMark("奔驰");
		System.out.println(subCar1);
		subCar.drive();
		subCar.speedChange(130);
	}
}
